package com.lagou.service.imp;

import com.lagou.dao.DepartmentDao;
import com.lagou.domain.Department;
import com.lagou.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Autowired
    private DepartmentDao departmentDao;

    public Department findDepartmentById(int id) {

        return departmentDao.findDepartmentById(id);
    }
}
